package com.example.demo.dao;

import com.example.demo.model.DistrictEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DistrictDao {

	int add(DistrictEntity district);

	int isExist(String adcode);

	List<DistrictEntity> getAll();

	DistrictEntity getByAdcode(String adcode);

	List<DistrictEntity> getByPadcode(String padcode);

}
